package com.aya.rabbitmq.exp;

import com.aya.rabbitmq.AyaConfirmCallback;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.listener.ListenerContainerConsumerFailedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Service;

@Service
public class MyListenerContainerConsumerFailedListener implements ApplicationListener<ListenerContainerConsumerFailedEvent> {
    Logger logger = LoggerFactory.getLogger(MyListenerContainerConsumerFailedListener.class);
    @Override
    public void onApplicationEvent(ListenerContainerConsumerFailedEvent event) {
        logger.info("自己监听的 声明消费者为exclusive失败的信息");
    }
}
